//
//  DemoViewController.swift
//  ProgrammaRulesDemo
//
//  Created by Qingke on 16/5/23.
//  Copyright © 2016年 Qingke. All rights reserved.
//

/*
    Property
    LifeCycle
    ViewSetUp : SetUpNavigationBar --> addSubView --> setUpSubView --> setUpLayout
    Private
    Delegate
*/

import UIKit

class DemoViewController: UIViewController {

//    MARK: - Property
    
    var dic     = [String]()
    var label   = UILabel()
    var button  = UIButton()
    
//    MARK: - LifeCycle
    
    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
//    MARK: - ViewSetUp
    
    func setUpNavigation()  {
        
    }
    
    func addSubView()   {
        self.view.addSubview(label)
    }
    
    func SetUpSubview() {
        button.enabled = false
    }
    
    func setUpLayout()  {
        label.frame = CGRectMake(0, 0, 20, 20)
    }
    
//    MARK: - Private
    func getDateFromWeb() {
        
    }
}
extension DemoViewController: UITableViewDataSource {
    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 4
    }
    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        return UITableViewCell()
    }
}
extension DemoViewController: UITableViewDelegate {
    
}


